package com.brush.system.domain.req.sysoperlog;

import cn.hutool.core.util.StrUtil;
import com.brush.common.core.domain.page.PageAbstructReq;
import io.swagger.annotations.ApiModelProperty;

/**
 * ClassName: SysOperLogResp
 * Package: com.brush.system.domain.req.sysoperlog
 * Description:
 *
 * @Author luo
 * @Create 2024/8/23 20:00
 * @Version 1.0
 */
public class SysOperLogReq extends PageAbstructReq {

    /**
     * 日志编号
     */
    @ApiModelProperty(value = "日志编号")
    private Integer operId;

    /**
     * 系统模块
     */
    @ApiModelProperty(value = "系统模块")
    private String title;

    /**
     * 操作类型
     */
    @ApiModelProperty(value = "操作类型")
    private String method;

    /**
     * 参数名称
     */
    @ApiModelProperty(value = "操作人员")
    private String operName;

    /**
     * 操作地点
     */
    @ApiModelProperty(value = "操作地点")
    private String operLocation;

    /**
     * 操作状态
     */
    @ApiModelProperty(value = "操作状态")
    private String status;

    /**
     * 操作日期
     */
    @ApiModelProperty(value = "操作日期")
    private String operTime;

    /**
     * 消耗时间
     */
    @ApiModelProperty(value = "消耗时间")
    private Long costTime;


    /**
     * 获取排序字段
     * @return
     */
    @ApiModelProperty(hidden = true)
    @Override
    public String getOrderBy() {
        if (StrUtil.isNotBlank(super.getOrderByColumn())){
            return super.getOrderByColumn() + " " + super.getIsAsc();
        }
        return null;
    }
}
